/*
 * GLShader.h
 *
 *  Created on: 2012/08/12
 *      Author: owner
 */

#ifndef GLSHADER_H_
#define GLSHADER_H_

#include "GLES2/gl2.h"

class GLShader {
public:
	static GLenum TYPE_VERTEX = GL_VERTEX_SHADER;
	static GLenum TYPE_FRAMGENT = GL_FRAGMENT_SHADER;

private:
	GLuint ref;

public:
	GLShader( GLint type );
	virtual ~GLShader();

	GLuint getReferenceId(){ return ref; }

	void setSource( const char* source );

	void compile();


};

#endif /* GLSHADER_H_ */
